<!DOCTYPE html>
<html lang="en">
<head>
    <script src="../js/jquery-1.10.1.min.js"></script>
    <script src="../js/mui.min.js"></script>
    <script>  document.write("<s"+"cript type='text/javascript' src='../js/common.js?"+Math.random()+"'></scr"+"ipt>"); </script>
    <meta charset="UTF-8">
    <title>推广码</title>
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="../css/mui.min.css" rel="stylesheet" />
    <link href="../phoneCss/commons.css" rel="stylesheet" />
    <link href="../css/share_team.css" rel="stylesheet" />
    <style>
        .mui-content{
            padding-bottom: 0;
        }
    </style>
</head>
<body>
<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">推广码</h1>
</header>
<div class="mui-content">
    <img id="authorize" style="    width: 100%;
    height: 100%;"/>
</div>
<script type="text/javascript">
    var userId = '';
    if(token==null||token==undefined||token==""){
        window.location.href="login.html"
    }else{
        $.ajax({
            url:'/user/getUserId.json',
            dataType:'json',
            data:{
                token:getItem('token'),
                companyCode:getItem('companyCode'),
            },
            type:'post',
            success:function (data) {
                userId = data.datas.userId;
                $('#authorize').attr("src","http://ddt.chinaddcat.com/qrcodeC/authorize/"+userId+".jpg");
            }
        })
    }

</script>
<script src="../js/common.js"></script>
</body>
</html>